
package org.pricejd.calibration;
import josx.platform.rcx.*;

/**
 * @author wjpj
 *
 * Howto use:
 * - Set the Motor A and C speeds to the speeds used in the OneMeterTime
 *   calibration.
 * - Send the compiled code to the RCX.
 * - Run the code and time the tanks turning.  
 * - You will time the robot for FOUR 360 degree rotations and then
 *   divide that time by 4 (to get the average time for one rotation).
 * 
 * - Make sure you have your Motor speeds written down, your One Meter Time and your
 *   Rotate time (in seconds) written down also.
 */
public class RotateTime {
	private static final int MOTOR_A_SPEED = 7;
	private static final int MOTOR_C_SPEED = 7;
	
	public static void main(String args[])
		throws InterruptedException {
		Motor.A.setPower(MOTOR_A_SPEED);
		Motor.C.setPower(MOTOR_C_SPEED);
		
		Motor.A.forward();
		Motor.C.backward();
		Button.RUN.waitForPressAndRelease();

	}
}
